/*
 * 保险
 * <p>根据银保监会的文件要求，保险行业财产险公司的车险业务，用户在投保缴费（微信&amp;支付宝&amp;银行卡）之前，必须要完成支付人的实名验证，确保支付人与投保人一致才能缴费。目前实名认证存在四种模式，分别为：中保信模式、上海模式、深圳模式和江苏模式，其中中保信模式和上海模式要求支付机构与实名平台专线对接（已有专线），深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接，所以部署一套单独的保险实名认证服务在易宝中台，支撑保险商户业务的正常进行。</p>
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.yeepay.yop.sdk.service.insurance.model;

import org.apache.commons.lang3.ObjectUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.HashMap;
import java.util.Map;

/**
 * RealnameAuthTradingBackDataDTOParam
 */
public class RealnameAuthTradingBackDataDTOParam implements Serializable{

  private static final long serialVersionUID = 1L;

  /**
   * 
   */
  @JsonProperty("customerNo")
  private String customerNo = null;

  /**
   * 
   */
  @JsonProperty("validateResult")
  private String validateResult = null;

  /**
   * 
   */
  @JsonProperty("messageCode")
  private String messageCode = null;

  /**
   * 
   */
  @JsonProperty("message")
  private String message = null;

  public RealnameAuthTradingBackDataDTOParam customerNo(String customerNo) {
    this.customerNo = customerNo;
    return this;
  }

   /**
   * Get customerNo
   * @return customerNo
  **/

  public String getCustomerNo() {
    return customerNo;
  }

  public void setCustomerNo(String customerNo) {
    this.customerNo = customerNo;
  }

  public RealnameAuthTradingBackDataDTOParam validateResult(String validateResult) {
    this.validateResult = validateResult;
    return this;
  }

   /**
   * Get validateResult
   * @return validateResult
  **/

  public String getValidateResult() {
    return validateResult;
  }

  public void setValidateResult(String validateResult) {
    this.validateResult = validateResult;
  }

  public RealnameAuthTradingBackDataDTOParam messageCode(String messageCode) {
    this.messageCode = messageCode;
    return this;
  }

   /**
   * Get messageCode
   * @return messageCode
  **/

  public String getMessageCode() {
    return messageCode;
  }

  public void setMessageCode(String messageCode) {
    this.messageCode = messageCode;
  }

  public RealnameAuthTradingBackDataDTOParam message(String message) {
    this.message = message;
    return this;
  }

   /**
   * Get message
   * @return message
  **/

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }


  @Override
  public boolean equals(java.lang.Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
    RealnameAuthTradingBackDataDTOParam realnameAuthTradingBackDataDTOParam = (RealnameAuthTradingBackDataDTOParam) o;
    return ObjectUtils.equals(this.customerNo, realnameAuthTradingBackDataDTOParam.customerNo) &&
    ObjectUtils.equals(this.validateResult, realnameAuthTradingBackDataDTOParam.validateResult) &&
    ObjectUtils.equals(this.messageCode, realnameAuthTradingBackDataDTOParam.messageCode) &&
    ObjectUtils.equals(this.message, realnameAuthTradingBackDataDTOParam.message);
  }

  @Override
  public int hashCode() {
    return ObjectUtils.hashCodeMulti(customerNo, validateResult, messageCode, message);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RealnameAuthTradingBackDataDTOParam {\n");
    
    sb.append("    customerNo: ").append(toIndentedString(customerNo)).append("\n");
    sb.append("    validateResult: ").append(toIndentedString(validateResult)).append("\n");
    sb.append("    messageCode: ").append(toIndentedString(messageCode)).append("\n");
    sb.append("    message: ").append(toIndentedString(message)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  private final Map<String, Object> _extParamMap = new HashMap<>();

  @JsonAnySetter
  public Map<String, Object> addParam(String name, Object value) {
    if (null != name && null != value) {
      _extParamMap.put(name, value);
    }
    return _extParamMap;
  }

  @JsonAnyGetter
  public Map<String, Object> get_extParamMap() {
    return _extParamMap;
  }

  @JsonIgnore
  public <T> T get_extParam(String name) {
    return (T) _extParamMap.get(name);
  }

}

